package cn.iocoder.yudao.module.hs.controller.admin.receiveorderdetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 收货单明细新增/修改 Request VO")
@Data
public class ReceiveOrderDetailSaveReqVO {

    @Schema(description = "收货单明细主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9776")
    private Long id;

    @Schema(description = "收货单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28540")
    @NotNull(message = "收货单id不能为空")
    private Long orderId;

    @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "物料名称不能为空")
    private String materialName;

    @Schema(description = "产品码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品码不能为空")
    private String materialCode;

    @Schema(description = "物料代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料代码不能为空")
    private String modeCode;

    @Schema(description = "物料箱编码")
    private String boxCode;

    @Schema(description = "托盘编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "托盘编码不能为空")
    private String trayCode;

    @Schema(description = "rfid编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "rfid编码不能为空")
    private String rfidCode;

    @Schema(description = "收货类型，1-自动收货 2-手动收货", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "收货类型，1-自动收货 2-手动收货不能为空")
    private Integer receiveType;

}